<?php
namespace AppWeb\Model;
use Think\Model;
class UserModel extends Model {
      public function user_find($where,$field){
		return $this->where($where)->field($field)->find(); 
      }
      public function user_select($data,$where){
		return $this->field($data)->where($where)->select(); 
      }
	  public function user_delect($data){
		return $this->where($data)->delete();
      }
	  public function user_page($data){
		return $this->page($data)->select();
      }
	  public function user_addALL($data){
		return $this->addALL($data); 
      }
	  public function user_add($data){
		return $this->add($data); 
      }
	  public function user_update($where,$data){
		 return $this->where($where)->save($data); 
      }
	  public function userscore_setDec($where,$data){
		return $this->where($where)->setDec('score',$data); 
      }
	  public function userscore_setInc($where,$data){
		return $this->where($where)->setInc('score',$data); 
      }
}